<?php

namespace app\api\controller\v1;


use app\api\controller\BaseController;
use app\api\model\User;
use Tinywan\Jwt\JwtToken;

class IndexController extends BaseController
{
    public function index()
    {
        $request = [
            'method' => 'crontabUpdate',
            'args'   => [
                'id'        => 3,
                'status'    => "0"
            ]
        ];
        $result  = \yzh52521\Task\Client::instance()->request($request);
        return json($result);
    }

    public function test()
    {
        $user = JwtToken::getUser();
        return $this->success($user);
    }
}